import Vue from "vue";
import ElementUI from "element-ui";

import "@/assets/css/element/index.css"

Vue.use(ElementUI)


// 封装提示信息
Vue.prototype.$confirms = function (back) {
    this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
    }).then(() => {
        back()
    }).catch(() => {
        this.$message({
            type: 'info',
            message: '已取消删除'
        });
    });
}